import {Column, Entity, PrimaryGeneratedColumn, ViewColumn} from "typeorm";
import {BaseEntity} from "../../../../common/entities/base";

@Entity('fd_survey',{
    comment: '问卷表',
})
export class SurveyEntity extends BaseEntity{
    @PrimaryGeneratedColumn({ type: 'int', name: 'sur_id', comment: '问卷ID' })
    public surId: number;

    @Column({ type: 'varchar', name: 'sur_name', default:null, comment: '问卷名称' })
    public surName: string;

    @Column({ type: 'varchar', name: 'name_color', default:'#333', comment: '标题颜色' })
    public nameColor: string;

    @Column({ type: 'varchar', name: 'sur_desc', default:null, comment: '问卷描述' })
    public surDesc: string;

    @Column({ type: 'varchar', name: 'desc_color', default:'#666', comment: '标题颜色' })
    public descColor: string;

    @Column({ type: 'varchar', name: 'sur_type', default:null, comment: '问卷类型' })
    public surType: string;

    @Column({ type: 'varchar', name: 'is_public', default:'N', comment: '是否公开' })
    public isPublic: string;

    @Column({ type: 'varchar', name: 'start_time', default:null, comment: '开始时间' })
    public startTime: string;

    @Column({ type: 'varchar', name: 'end_time', default:null, comment: '结束时间' })
    public endTime: string;

    @Column({ type: 'varchar', name: 'repeat_join', default:'0', comment: '点击提交后是否可以再次参与' })
    public repeatJoin: string;

    @Column({ type: 'varchar', name: 'cover_img', default:'', comment: '封面图片' })
    public coverImg: string;

    @Column({ type: 'varchar', name: 'top_img', default:null, comment: '顶部图片' })
    public topImg: string;

    @Column({ type: 'varchar', name: 'bg_img', default:null, comment: '背景图片' })
    public bgImg: string;

    @Column({ type: 'varchar', name: 'bg_color', default:null, comment: '背景图颜色' })
    public bgColor: string;

    @Column({ type: 'varchar', name: 'sur_finish', default:null, comment: '结束反馈语' })
    public surFinish: string;

    @Column({ type: 'varchar', name: 'state', default:'1', comment: '问卷状态' })
    public state: string;

    @Column({ type: 'varchar', name: 'show_score', default:'Y', comment: '显示分数' })
    public showScore: string;

    @Column({ type: 'varchar', name: 'show_type', default:'Y', comment: '显示题目类型' })
    public showType: string;

    @Column({ type: 'varchar', name: 'show_title', default:'Y', comment: '显示问卷标题' })
    public showTitle: string;

    @Column({ type: 'varchar', name: 'show_desc', default:'Y', comment: '显示问卷说明' })
    public showDesc: string;

    @Column({ type: 'varchar', name: 'show_index', default:'Y', comment: '显示题号' })
    public showIndex: string;

    @Column({ type: 'varchar', name: 'is_template', default:'N', comment: '是否作为模板' })
    public isTemplate: string;

    @Column({ type: 'varchar', name: 'temp_name', default:'', comment: '模板名称' })
    public tempName: string;

}











